package com.unknowpupil.web.component.annotation.dto;

import com.unknowpupil.web.component.wallet.entity.CoinWallet;

/**
 * @Classname: EntityTool
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2019/11/7 10:32
 * @Description:  用来封装实体的工具
 * @Version: 1.0
 */
public class EntityTool {
    public static CoinWallet createCoinWallet(String fileName, String keyStoreKey, String memorizingWords, String address, String publicKey, String privateKey) {
        CoinWallet coinWallet = new CoinWallet();
        coinWallet.setAddress(address);
        coinWallet.setKeystorePath(keyStoreKey);
        coinWallet.setPrivateKey(privateKey);
        coinWallet.setPublicKey(publicKey);
        coinWallet.setMnemonicCode(memorizingWords);
        coinWallet.setFileName(fileName);
        return coinWallet;
    }
}
